﻿/**
 * @brief     串口配置
 * @details   
 * @author    Yin
 * @version   1.0
 * @date      2024-03-28
 * @copyright 
 * @note
 */

#ifndef SERIALPORTCONFOG_H
#define SERIALPORTCONFOG_H

#include "common_global.h"

#include <QObject>

namespace Common {

	class COMMONSHARED_EXPORT SerialPortConfig : public QObject
	{
		Q_OBJECT

	public:
		explicit SerialPortConfig(QObject *parent = nullptr);
		~SerialPortConfig();

		/**
		 * @brief getAllSerialPort 获取全部串口配置
		 * @return
		 */
		static QStringList getAllSerialPort();

		/**
		 * @brief getAvailableSerialPort 获取未被占用的串口
		 * @return
		 */
		static QStringList getAvailableSerialPort();

	};

} //namespace Common

#endif // SERIALPORTCONFOG_H
